<?php
use_helper('Javascript','Object');
echo javascript_include_tag('ajax');
  if ($sf_params->get('ajax')=='1')
//if ($this->getRequestParameter('ajax')=='1')
{?>
          <td>Especialistas:</td>
          <td colspan="6">
		  <?

		  	echo select_tag('especialista',objects_for_select($especialistas, 'getId', 'getNombreYDecanato',6),array(
		  	'onChange' => remote_function(array(
            'update' => 'area_turno',
            'url' => 'solicitarcitas/turno',
            'with' => "'ajax=1&especialista='+this.value"
          			))

		  	));
          ?>
          </td>
			<?
			}?>
